cmake_minimum_required(VERSION 3.26)
project(CPP_Core)

set(CMAKE_CXX_STANDARD 17)
link_directories(libs) #链接文件夹 指定引用的外部库文件夹路径 用在add_executable或add_library之前

add_executable(CPP_Core main.cpp
        Test02_reference/Test02.cpp
        Test02_reference/Test02.h
        Test01_const/Test1.cpp
        Test01_const/Test1.h
        Test03_inline_func/test03.cpp
        Test03_inline_func/test03.h
        Test04_class_object/test04.cpp
        Test04_class_object/test04.h
        Test04_class_object/Person.cpp
        Test04_class_object/Person.h
        Test04_class_object/MyArray.cpp
        Test04_class_object/MyArray.h
        Test04_class_object/MyString.cpp
        Test04_class_object/MyString.h
        Test05_template/test05.cpp
        Test05_template/test05.h
        Test06_exception/test06.cpp
        Test06_exception/test06.h
        Test07_IO/test07.cpp
        Test07_IO/test07.h
        Test08_STL/Test08.cpp
        Test08_STL/Test08.h
        Test08_STL/Test081.cpp
        Test08_STL/Test081.h
        Test08_STL/Test082.cpp
        Test08_STL/Test082.h
        Test08_STL/Test083.cpp
        Test08_STL/Test083.h
)

#target_link_libraries(CPP_Core libTestMath.a) #链接目标库文件 指定引用的外部库文件 用在add_executable或add_library之后
